/*
 * @Description: 订单状态栏
 * @Author: ziwei.ma
 * @Date: 2019-07-23 16:46:46
 * @Last Modified by: ziwei.ma
 * @Last Modified time: 2019-09-02 15:17:10
 */
<template>
  <div class="order-status-warpper flex-h flex-vc">
    <div class="order-status flex1 flex-v">
      <div class="fontsize32">{{orderDetailInfo.stateText}}</div>
      <!-- <span class="fontsize28">交易23小时59分钟后自动关闭</span> -->
    </div>
    <img
      style="border:none"
      :src="imgUrl"
    >
  </div>
</template>

<script>
export default {
  props: {
    orderDetailInfo: {
      type: Object,
      default: null
    }
  },
  computed: {
    imgUrl() {
      switch (this.orderDetailInfo.state) {
        case -2:
          return require('../assets/close.png')
        case -1:
          return require('../assets/daizhifu.png')
        case 0:
          return require('../assets/yizhifu.png')
        default:
          return require('../assets/daizhifu.png')
      }
    }
  }
}
</script>

<style scoped>
.order-status-warpper {
  width: 622px;
  height: 112px;
  background-color: #fff;
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 32px;
}
.order-status-warpper > img {
  width: 144px;
  height: 108px;
}
.order-status > div {
  font-weight: 500;
  margin-bottom: 12px;
}
</style>
